package com.wei;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 17:19  2021/4/25
 * @Modified by:
 */
public class NormalProxy implements ObjectInterface{
    private RealObject realObject;
    @Override
    public void doThings() {
        before();
        realObject.doThings();
        after();
    }

    void after(){
        System.out.println("do after things...");
    }

    void before(){
        System.out.println("do before things...");
    }

    public NormalProxy(RealObject realObject) {
        this.realObject = realObject;
    }
}
